/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package spelet;

import java.awt.Graphics;
import java.awt.Toolkit;

public class Rust extends Entity {
    Rust(int x, int y,int scrollY) {
        s = new Sprite(Toolkit.getDefaultToolkit().getImage("Sprites\\tile_rust_seamless.jpg"));
        scrollPosition=scrollY;
        position_x = x;
        position_y = y;
        type="rust";

    }
    Rust(int x, int y) {
        s = new Sprite(Toolkit.getDefaultToolkit().getImage("Sprites\\tile_rust_seamless.jpg"));
        position_x = x;
        position_y = y;
        type="rust";

    }

    public void draw(Graphics g) {
        s.draw(g,position_x,position_y);
    }


    public void moveX(int x) {
        position_x=position_x+x;
    }


    public void moveY(int y) {
        position_y=position_y+ y;

    }



}

